<div id="menu">
    <ul id="categories">
    {foreach from=$smarty.session.sharing.mainMenu key=menu item=key name=i}
    {if $key.category.slug == $selectedTab}
        <li class="onglet_selected_blue onglets_categories"><a href='{$key.category.url}'>{$key.category.nom}</a>
    {else}
        <li class="onglets_categories"><a href='{$key.category.url}'>{$key.category.nom}</a>
    {/if}
       {if sizeof($key.lvl1)!=0 }
            <ul class="sous_categorie">
            {foreach from=$key.lvl1 key=lvl1 item=key1 name=j}
                <li class="onglet_ss_cat"><a href='{$key1.subcategory.url}tous/'>{$key1.subcategory.nom}</a></li>
            {/foreach}
            <li class="onglet_last_ss_cat">&nbsp;</li></ul>
       {/if}
       </li>
    {/foreach}
    </ul>
    <ul id="categories_accueil">
        <li class="onglets_accueil">
            <a href="{$smarty.session.sharing.website}" rel="nofollow" title="Retour sur le site de {$smarty.session.sharing}">
                <span class="retour">retour sur</span> {$smarty.session.sharing}
            </a>
        </li>
    {if $navigation.currentPage == "members"}
        <li class="onglet_selected_orange onglets_accueil"><a href="{$URL_PATH}membres/">Membres</a></li>
    {else}
        <li class="onglets_accueil"><a href="{$URL_PATH}membres/">Membres</a></li>
    {/if}
    {if $navigation.currentPage == "posts" || $navigation.currentPage == "videos" || $navigation.currentPage == "events"}
        <li class="onglet_selected_orange onglets_accueil"><a href="{$URL_PATH}articles/">A la une</a>
    {else}
        <li class="onglets_accueil"><a href="{$URL_PATH}articles/">A la une</a>
    {/if}
        <ul class="sous_categorie_une">
            <li class="onglet_ss_cat"><a href="{$URL_PATH}articles/">Le mag</a></li>
            <li class="onglet_ss_cat"><a href="{$URL_PATH}videos/">La Web TV</a></li>
            <li class="onglet_ss_cat"><a href="{$URL_PATH}agenda/">L&acute;agenda</a></li>
            <li class="onglet_last_ss_cat">&nbsp;</li>
        </ul>
    </li>
    </ul>
    <div class="clear"></div>
</div>